<!DOCTYPE html>
<html lang="en-gb" dir="ltr">

    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Drop - UIkit tests</title>
        <script src="js/test.js"></script>
        <style type="text/css">

            .boundary { border: 1px dashed rgba(0,0,0,0.2); }

            .small-width { width: 165px; }

        </style>
    </head>

    <body>

        <div class="uk-container">

            <h1>Drop</h1>

            <div class="uk-margin" uk-margin>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Hover</button>
                    <div id="parent-drop" uk-drop>
                        <div id="parent-drop-card" class="uk-card uk-card-body uk-card-default">
                            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>

                            <button class="uk-button uk-button-primary uk-width-1-1" type="button">Hover</button>
                            <div id="child-drop" uk-drop="pos: right-center; offset: 50">
                                <div id="child-drop-card" class="uk-card uk-card-body uk-card-default">
                                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>

                                    <button class="uk-button uk-button-primary uk-width-1-1" type="button">Hover</button>
                                    <div id="child-child-drop" uk-drop="pos: right-center; offset: 50">
                                        <div id="child-child-drop-card" class="uk-card uk-card-body uk-card-default">
                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Click</button>
                    <div id="parent-drop-click" uk-drop="mode: click">
                        <div id="parent-drop-card-click" class="uk-card uk-card-body uk-card-default">
                            <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>

                            <button class="uk-button uk-button-primary uk-width-1-1" type="button">Click</button>
                            <div id="child-drop-click" uk-drop="pos: right-center; offset: 50; mode: click">
                                <div id="child-drop-card-click" class="uk-card uk-card-body uk-card-default">
                                    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>

                                    <button class="uk-button uk-button-primary uk-width-1-1" type="button">Click</button>
                                    <div id="child-child-drop-click" uk-drop="pos: right-center; offset: 50; mode: click">
                                        <div id="child-child-drop-card-click" class="uk-card uk-card-body uk-card-default">
                                            Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Hover only</button>
                    <div uk-drop="mode: hover; delay-hide: 0">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button" uk-toggle="target: ~div; mode: click,hover">Same</button>
                    <button class="uk-button uk-button-default" type="button" uk-toggle="target: ~div; mode: click,hover">Same</button>
                    <button class="uk-button uk-button-default" type="button">Target</button>
                    <div uk-drop>
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

            </div>

            <h2>Position</h2>

            <div class="uk-margin" uk-margin>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Bottom Left</button>
                    <div uk-drop>
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Bottom Center</button>
                    <div uk-drop="pos: bottom-center">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Bottom Right</button>
                    <div uk-drop="pos: bottom-right">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Bottom Justify</button>
                    <div uk-drop="pos: bottom-justify">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

            </div>

            <div class="uk-margin" uk-margin>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Top Left</button>
                    <div uk-drop="pos: top-left">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Top Center</button>
                    <div uk-drop="pos: top-center">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Top Right</button>
                    <div uk-drop="pos: top-right">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Top Justify</button>
                    <div uk-drop="pos: top-justify">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

            </div>

            <div class="uk-margin" uk-margin>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Left Top</button>
                    <div uk-drop="pos: left-top">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Left Center</button>
                    <div uk-drop="pos: left-center">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Left Bottom</button>
                    <div uk-drop="pos: left-bottom">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

            </div>

            <div class="uk-margin" uk-margin>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Right Top</button>
                    <div uk-drop="pos: right-top">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Right Center</button>
                    <div uk-drop="pos: right-center">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Right Bottom</button>
                    <div uk-drop="pos: right-bottom">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

            </div>

            <h2>Drop with Boundary</h2>

            <div class="boundary uk-margin uk-flex uk-flex-between">

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Right</button>
                    <div uk-drop="pos: bottom-right; boundary: ! .boundary">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Justify</button>
                    <div uk-drop="pos: bottom-justify; boundary: ! .boundary; boundary-align: true">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Center</button>
                    <div uk-drop="pos: bottom-center; boundary: ! .boundary">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Left</button>
                    <div uk-drop="pos: bottom-left; boundary: ! .boundary; boundary-align: true">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Right</button>
                    <div uk-drop="pos: bottom-right; boundary: ! .boundary; boundary-align: true">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Centered</button>
                    <div uk-drop="pos: bottom-center; boundary: ! .boundary; boundary-align: true">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Left</button>
                    <div uk-drop="pos: bottom-left; boundary: ! .boundary">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

            </div>

            <div class="boundary small-width uk-panel">

                <div class="uk-inline uk-margin-small-bottom">
                    <button class="uk-button uk-button-default" type="button">Top</button>
                    <div uk-drop="pos: right-bottom; boundary: ! .boundary">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline uk-margin-small-bottom">
                    <button class="uk-button uk-button-default" type="button">Justify</button>
                    <div uk-drop="pos: right-justify; boundary: ! .boundary; boundary-align: true">
                        <div class="uk-card uk-card-body uk-card-default uk-height-1-1">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline uk-margin-small-bottom">
                    <button class="uk-button uk-button-default" type="button">Center</button>
                    <div uk-drop="pos: right-center; boundary: ! .boundary">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline uk-margin-small-bottom">
                    <button class="uk-button uk-button-default" type="button">Top</button>
                    <div uk-drop="pos: right-top; boundary: ! .boundary; boundary-align: true">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline uk-margin-small-bottom">
                    <button class="uk-button uk-button-default" type="button">Bottom</button>
                    <div uk-drop="pos: right-bottom; boundary: ! .boundary; boundary-align: true">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline uk-margin-small-bottom">
                    <button class="uk-button uk-button-default" type="button">Centered</button>
                    <div uk-drop="pos: right-center; boundary: ! .boundary; boundary-align: true">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

                <div class="uk-inline">
                    <button class="uk-button uk-button-default" type="button">Bottom</button>
                    <div uk-drop="pos: right-top; boundary: ! .boundary">
                        <div class="uk-card uk-card-body uk-card-default">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</div>
                    </div>
                </div>

            </div>

            <h2>JavaScript Options</h2>

            <div class="uk-overflow-auto">
                <table class="uk-table uk-table-striped">
                    <thead>
                        <tr>
                            <th>Option</th>
                            <th>Value</th>
                            <th>Default</th>
                            <th>Description</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td><code>toggle</code></td>
                            <td>String, Boolean</td>
                            <td>'- *'</td>
                            <td>CSS selector for the element to be used as toggle. By default, the preceding element is used.</td>
                        </tr>
                        <tr>
                            <td><code>pos</code></td>
                            <td>String</td>
                            <td>'bottom-left'</td>
                            <td>Drop position.</td>
                        </tr>
                        <tr>
                            <td><code>mode</code></td>
                            <td>hover | click</td>
                            <td>click,hover</td>
                            <td>Comma separated list of drop trigger behaviour modes.</td>
                        </tr>
                        <tr>
                            <td><code>delay-show</code></td>
                            <td>Number</td>
                            <td>0</td>
                            <td>Delay time in hover mode before a Drop is shown in ms.</td>
                        </tr>
                        <tr>
                            <td><code>delay-hide</code></td>
                            <td>Number</td>
                            <td>800</td>
                            <td>Delay time in hover mode before a Drop is hidden in ms.</td>
                        </tr>
                        <tr>
                            <td><code>boundary</code></td>
                            <td>CSS selector</td>
                            <td>window</td>
                            <td>Referenced element to keep Drop's visibility.</td>
                        </tr>
                        <tr>
                            <td><code>boundary-align</code></td>
                            <td>Boolean</td>
                            <td>false</td>
                            <td>Align Drop to boundary.</td>
                        </tr>
                        <tr>
                            <td><code>flip</code></td>
                            <td>false|true|'x'|'y'</td>
                            <td>true</td>
                            <td>Automatic Drop flip.</td>
                        </tr>
                        <tr>
                            <td><code>cls</code></td>
                            <td>String</td>
                            <td>'uk-drop'</td>
                            <td>The Drop container class.</td>
                        </tr>
                        <tr>
                            <td><code>offset</code></td>
                            <td>Number</td>
                            <td>0</td>
                            <td>The offset of the Drop container.</td>
                        </tr>
                        <tr>
                            <td><code>animation</code></td>
                            <td>String</td>
                            <td>false</td>
                            <td>The space separated names of animations to use.</td>
                        </tr>
                        <tr>
                            <td><code>duration</code></td>
                            <td>Number</td>
                            <td>200</td>
                            <td>The animation duration.</td>
                        </tr>
                    </tbody>
                </table>
            </div>

        </div>

    </body>
</html>
